package com.springboot.cloud.demos.feign.service;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.common.core.exception.SystemErrorType;
import com.springboot.cloud.demos.entity.form.CouponForm;
import com.springboot.cloud.demos.entity.param.CouponQueryParam;
import org.springframework.stereotype.Component;

@Component
public class CouponServiceFallback implements CouponService {

    @Override
    public Result conditions(CouponQueryParam params) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result coupon(String id) {
       return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result add(CouponForm couponForm) {
       return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result update(CouponForm couponForm) {
       return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public void delete(String id) {

    }
}
